package com.tz.entity;

/**
 * Created by Tinyang on 2016/7/25.
 */
public class Commodity {
    private Product product;
    private int number;

    // private double price;
    public Commodity() {
    }

    public Commodity(Product product, int number) {
        this.product = product;
        this.number = number;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    // public double getPrice() {
    //   return price;
    //}

    //public void setPrice(double price) {
    //this.price=price;
//}

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Commodity{");
        sb.append("product=").append(product);
        sb.append(", number=").append(number);
        //  sb.append(", price='").append(price).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
